package cn.bluemobi.platform.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.bluemobi.common.core.dto.Page;
import cn.bluemobi.common.core.dto.PageCondition;
import cn.bluemobi.platform.core.mybatis.PageUtils;
import cn.bluemobi.platform.mapper.PointsRebateMapper;
import cn.bluemobi.platform.service.PointsRebateService;

/**
 * 
 * @author lvxh
 * 
 */
@Service
@Transactional
public class PointsRebateServiceImpl implements PointsRebateService {
	@Autowired
	private PointsRebateMapper pointsRebateMapper;

	@Override
	public Page<Map<String, Object>> findPointsRebates(PageCondition cond) {
		Page<Map<String, Object>> page = PageUtils.startPage(cond);
		page.setList(pointsRebateMapper.findPointsRebates(cond.getMap()));
		return page;
	}

}
